Search

#猜下面兩段扣在寫小機器人的哪個部分
push()
fill(color...

  • Share this:

#猜下面兩段扣在寫小機器人的哪個部分
push()
fill(colors[3])
rotate(0.3 + sin(frameCount/30)/5)
rect(-90, -100, 150, 30)
pop()
push()
fill(colors[4])
rotate(-0.25 + sin(frameCount/50)/5)
rect(100, -100, 150, 30)
pop()

--
欲知詳情,請見文章;欲知如何用 p5.js 讓小機器人動起來,就來看看這邊共筆吧!


👉 看文章:https://bit.ly/3cQVUq2
👉 p5.js 免費入門資源總整:https://bit.ly/2SAwu9B
👉 Hahow 好學校 線上課程:https://bit.ly/35yvTrD


Tags:

About author
not provided
[老闆,來點寇汀吧。] 寇汀,是一種名為Coding的雞尾酒。 深夜酒吧,想做什麼都可以。 訂閱 Youtube ? https://bit.ly/3g35CrM
View all posts